import service from '@/utils/request'
// @Tags CasCards
// @Summary 创建casCards表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CasCards true "创建casCards表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /casCards/createCasCards [post]
export const createCasCards = (data) => {
  return service({
    url: '/casCards/createCasCards',
    method: 'post',
    data
  })
}

// @Tags CasCards
// @Summary 删除casCards表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CasCards true "删除casCards表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /casCards/deleteCasCards [delete]
export const deleteCasCards = (params) => {
  return service({
    url: '/casCards/deleteCasCards',
    method: 'delete',
    params
  })
}

// @Tags CasCards
// @Summary 批量删除casCards表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除casCards表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /casCards/deleteCasCards [delete]
export const deleteCasCardsByIds = (params) => {
  return service({
    url: '/casCards/deleteCasCardsByIds',
    method: 'delete',
    params
  })
}

// @Tags CasCards
// @Summary 更新casCards表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CasCards true "更新casCards表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /casCards/updateCasCards [put]
export const updateCasCards = (data) => {
  return service({
    url: '/casCards/updateCasCards',
    method: 'put',
    data
  })
}

// @Tags CasCards
// @Summary 用id查询casCards表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.CasCards true "用id查询casCards表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /casCards/findCasCards [get]
export const findCasCards = (params) => {
  return service({
    url: '/casCards/findCasCards',
    method: 'get',
    params
  })
}

// @Tags CasCards
// @Summary 分页获取casCards表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取casCards表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /casCards/getCasCardsList [get]
export const getCasCardsList = (params) => {
  return service({
    url: '/casCards/getCasCardsList',
    method: 'get',
    params
  })
}
// @Tags CasCards
// @Summary 获取数据源
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /casCards/findCasCardsDataSource [get]
export const getCasCardsDataSource = () => {
  return service({
    url: '/casCards/getCasCardsDataSource',
    method: 'get',
  })
}

// @Tags CasCards
// @Summary 不需要鉴权的casCards表接口
// @accept application/json
// @Produce application/json
// @Param data query cardReq.CasCardsSearch true "分页获取casCards表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /casCards/getCasCardsPublic [get]
export const getCasCardsPublic = () => {
  return service({
    url: '/casCards/getCasCardsPublic',
    method: 'get',
  })
}
